package com.api.manage.base;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * 分页查询基础实体类
 * @author DT
 * @date 2021/6/12 11:29
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class PageBean implements Serializable {

    private static final long serialVersionUID = 7143289007025794445L;

    //value = "当前页"
    private Integer current;

    // "每页容量"
    private Integer size;
    //系统编码
    private String sysCode;
    // "开始时间"
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    private Date startTime;

    // "结束时间"
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    private Date endTime;
}
